New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@gram-data/gram-builder

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gram-data/gram-builder

AST builder for gram data graph format


Version published
Maintainers
1
Created

()-[build]->(ast)

Build valid gram AST.

How to gram-builder

Install:

npm install @gram-data/gram-builder

Build an AST:

import { node, edge } from '@gram-data/gram-builder';

const left = node('a');
const right = node('b');
const ast = edge([left, right], 'right');

Next Steps

  • Enrich record properties with js objects using [[gram-value]]
  • Serializes to a string using [[gram-stringify]]
  • Introspect the AST using [[gram-ast]]

FAQs

Package last updated on 22 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts